// ***** Dimensions for all dimensions *****

// ;preview
    $fa = 2.0;
    $fs = 0.1; // filament size / 2

    $fn= $preview ? 32 : 150;

// Nuts&bolts dimensions
        bolt_d = 3; // m3 bolts for all
        bolt_l_long = 10;
        bolt_l_short = 5;
        bolt_head_d = 3;
        bolt_head_l = 2;
    bolt_long_L = [bolt_d, bolt_l_long, bolt_head_d, bolt_head_l];
    bolt_short_L = [bolt_d, bolt_l_short, bolt_head_d, bolt_head_l];
    bolt_common_L = [bolt_d, bolt_head_d, bolt_head_l];
    
// Heated thread inserts dimensions
        thread_insert_od = 0;
        thread_insert_id = 0;
        thread_insert_l = 0;
    thread_insert_L = [thread_insert_od, thread_insert_id, thread_insert_l];
    
        thread_insert_hole_d = 0;
        thread_insert_hole_l = 0;    
    thread_insert_hole_L = [thread_insert_hole_d, thread_insert_hole_l];

// Magnets dimensions
        magnet_d = 0;
        magnet_h = 0;
    magnet_L = [magnet_d, magnet_h];

// Arduino dimensions
        arduino_h = 0;
        arduino_w = 0;
        arduino_l = 0;
    arduino_L = [arduino_h, arduino_w, arduino_l];
    
// Sensor dimensions
        sensor_h = 10;
        sensor_w = 15;
        sensor_l = 20;
    sensor_L = [sensor_h, sensor_w, sensor_l];

// Ball assembly
	
	finger_hole_radius = 8 / 2;
	ball_assemly_bolt_mount_L = [5, 5, 3];
  
  
// Zirconium Ball bearing
    zro2_ball_diameter = 2;
    zro2_ball_position_angle = 60;
  zro2_L = [zro2_ball_diameter, zro2_ball_position_angle];

// Main Ball
	spacing = zro2_ball_diameter;
	ball_diameter = 41.46;
	ball_radius = ball_diameter / 2;
